package com.sky.mapper;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    void updateNumber(ShoppingCart cart);

    void insert(ShoppingCart shoppingCart);

    List<ShoppingCart> list(ShoppingCart shoppingCart);

    void delete(ShoppingCart cart);

    List<ShoppingCart> getByUserID(Long userId);

    void clean(Long userId);

    void insertBatch(List<ShoppingCart> shoppingCartList);
}
